import QtQuick 2.0

import "../../js/util.js" as Util

ACellRow {
    id: id_root
    property alias m_sipNumber: m_PhoneText_id.text
    property string m_phoneNumber: ""
    property string m_head: ""
    property string m_niceName: ""
    signal clickSignal

    m_leftItem: Item {
        width: m_lineValue
        height: m_lineValue

        Image {
            width: parent.width*0.7
            height: parent.height*0.7
            anchors.centerIn: parent
            source: "qrc:/images/icon_SOUSUO.png"
        }
    }

    m_centerItem: Row {
        AText {
            id: m_NameText_id
            font.pointSize: 18
            text: qsTr("搜索:")
        }

        AText {
            id: m_PhoneText_id
            font.pointSize: 18
            color: Util.titleColor
        }
    }

    MouseArea {
        id: m_mouse
        anchors.fill: parent
        onClicked: clickSignal()
    }

    states: [
        State {
            when: m_mouse.pressed
            PropertyChanges { target: id_root; color: "#aaaaaa" }
        }
    ]
}

